<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>LogIn.jsp</title>
<style>
#btnLog, #btnOutput{
border: 1px dotted pink;
}
</style>

<script>
	window.onload = function(){
		var logout = document.getElementById('btnLogout')
		if(logout != null){
			logout.onclick = function(){
				location.href = 'index2.jsp?inc_center=./jsp/logout.jsp';
			}
		}
	}
</script>

</head>
<body>
<%
String sessionID = (String) session.getAttribute("mid");
if(sessionID == null || sessionID == ""){
	
%>
<!-- Before Log-In -->
<form name="LoginFrm" method="post" action="index2.jsp?inc_center=./jsp/login_result.jsp">  <!-- action은 경로지정 -->
	<label>아이디</label>&nbsp;<input type="text" name="mid"><br/>
	<label>암&emsp;호</label>&nbsp;<input type="password" name="pwd"><br/>
	<input type="submit" value="Log In" id="btnLog">
</form>
<%} %>
</body>
</html>